PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-06 10:11:34.934129+00:00 (UTC)
In US/Central Time, this is 2024-03-06 04:11:34.934129-06:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../_images/4d5c520383146dc63b991a166dc1315b5d622a9cea633842c5e94dc01b99cff9.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../_images/07f9c3b828b5692ae148073079601053ef6adb9e92b08e6385027ce79b684f13.png
fig = px.line(vix)
fig.show()
../_images/373c08e946ea18d0bf7f43fdc3628419d0f473308b533406400c10a65372cea9.png